﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Outpatient.Migrations
{
    /// <inheritdoc />
    public partial class add_table_OtpRxType : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "OtpRxType",
                schema: "Outpatient",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    OtpRxTypeCodg = table.Column<string>(type: "text", nullable: false),
                    OtpRxTypeName = table.Column<string>(type: "text", nullable: false),
                    OtpRxTitle = table.Column<string>(type: "text", nullable: false),
                    DataDictCode = table.Column<string>(type: "text", nullable: false),
                    DataDictName = table.Column<string>(type: "text", nullable: false),
                    ValiFlag = table.Column<bool>(type: "boolean", nullable: false),
                    OtpAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    ErAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    PedAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    WmAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    AnstMtl1AttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    Mtl2AttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    TcmherbAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    TcmpatAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    OtherAttrFlag = table.Column<bool>(type: "boolean", nullable: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true),
                    IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_OtpRxType", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "OtpRxType",
                schema: "Outpatient");
        }
    }
}
